package com.citycloud.ccuap.tc.admin.repository;

import com.citycloud.ccuap.tc.admin.entity.SysProjectRelApp;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.mybatis.repository.support.MybatisRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 站点和应用关联操作
 *
 * @author sufeng
 */

@Repository
public interface SysProjectRelAppRepository extends MybatisRepository<SysProjectRelApp, Long> {
    List<SysProjectRelApp> findByProjectIdOrderByObjIdDesc(@Param("projectId") Long projectId);

    List<SysProjectRelApp> findByClientId(@Param("clientId") String clientId);
    int deleteByProjectId(@Param("projectId") Long projectId);

    List<SysProjectRelApp> findByProjectTypeId(String projectTypeId);
}